package com.dream.technology.service.impl;

import com.dream.technology.db.dao.RcDateTypeMapper;
import com.dream.technology.db.entity.RcDateType;
import com.dream.technology.db.entity.RcDateTypeQuery;
import com.dream.technology.service.RcDateTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("rcDateTypeService")
public class RcDateTypeServiceImpl implements RcDateTypeService {

    @Autowired
    private RcDateTypeMapper rcDateTypeMapper;


    @Override
    public int countByExample(RcDateTypeQuery example) {
        return rcDateTypeMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(RcDateTypeQuery example) {
        return rcDateTypeMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return rcDateTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(RcDateType record) {
        return rcDateTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(RcDateType record) {
        return rcDateTypeMapper.insertSelective(record);
    }

    @Override
    public List<RcDateType> selectByExample(RcDateTypeQuery example) {
        return rcDateTypeMapper.selectByExample(example);
    }

    @Override
    public RcDateType selectByPrimaryKey(Long id) {
        return rcDateTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(RcDateType record, RcDateTypeQuery example) {
        return rcDateTypeMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(RcDateType record, RcDateTypeQuery example) {
        return rcDateTypeMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(RcDateType record) {
        return rcDateTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(RcDateType record) {
        return rcDateTypeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<RcDateType> findAll() {
        return rcDateTypeMapper.selectByExample(null);
    }
}
